@import "./topvar";

.top-active {
  background-color: $box-background;
  border-bottom: 1px solid #eee;
  .top-wrapper {
    background-color: $box-background;
    .top-left {
      div {
        float: left;
        width: 85px;
        height: 35px;
        font-size: 12px;
        position: relative;
        text-align: center;
        line-height: 35px;
        em {
          color: $top-color;
        }

        b {
          transition: all 0.2s;
          transform: rotate(0deg);
          display: inline-block;
          width: 20px;
          height: 20px;
          position: relative;
          top: 6px;
          left: -2px;
          i {
            display: inline-block;
            width: 0px;
            height: 0px;
            border: 5px solid transparent;
            border-bottom: 5px solid #000;
            position: absolute;
            left: 5px;
            top: 1px;
          }
          em {
            display: inline-block;
            width: 0px;
            height: 0px;
            border: 5px solid transparent;
            border-bottom: 5px solid white;
            position: absolute;
            left: 5px;
            top: 2px;
          }
        }
      }
      div:nth-of-type(4) {
        width: 120px;
        height: 30px;
        margin-top: 4px;
        p {
          width: 48%;
          height: 27px;
          display: inline-block;
          float: left;
          text-align: center;
          line-height: 27px;
        }
        p:nth-of-type(1) {
          background-color: rgb(255, 102, 0);
          border-top-left-radius: 5px;
          border-bottom-left-radius: 5px;
          border: 1px solid #ccc;
          border-right: none;
          color: white;
        }
        p:nth-of-type(2) {
          background-color: white;
          border: 1px solid #ccc;
          border-left: none;
          border-top-right-radius: 5px;
          border-bottom-right-radius: 5px;
        }
      }
      div:nth-of-type(5) {
        padding-left: 5px;
        box-sizing: border-box;
        em {
          float: left;
          display: inline-block;
          margin-top: 8px;
          width: 20px;
          height: 20px;
          background: url(../img/tubiao.png) no-repeat -383px -182px;
        }
        i {
          float: left;
        }
        b {
          float: left;
          display: block;
          width: 0;
          height: 0;
          border: 5px solid transparent;
          border-top: 5px solid #000;
          margin-top: 9px;
          margin-left: 6px;
        }
        &:hover {
          color: $hover-color;
        }
      }
      div:not(:nth-of-type(5)):hover {
        background-color: $box_back2;
        b {
          transform: rotate(180deg);
        }
      }
      div:nth-of-type(1) {
        -webkit-box-sizing: border-box;
        div {
          width: 83px;
          background-color: white;
          height: 4px;
          display: none;
        }
        ul {
          margin-left: -1px;
          width: 85px;
          background-color: white;
          height: 0;
          overflow: hidden;
          transition: all 0.5s;
          position: absolute;
          margin-top: 2px;
          z-index: 10000;
          width: 400px;
          border: none;
        }
        &:hover {
          border-left: 1px solid #ccc;
          border-right: 1px solid #ccc;
          div {
            display: block;
          }
          ul {
            height: 150px;
            border: 1px solid #ccc;
            border-top: none;
          }
        }
      }
      div:nth-of-type(2) {
        -webkit-box-sizing: border-box;
        div {
          width: 83px;
          background-color: white;
          height: 4px;
          display: none;
        }
        ul {
          margin-left: -1px;
          width: 85px;
          background-color: white;
          height: 0;
          overflow: hidden;
          transition: all 0.5s;
          position: absolute;
          margin-top: 2px;
          z-index: 10000;
          width: 400px;
          border: none;
        }
        &:hover {
          border-left: 1px solid #ccc;
          border-right: 1px solid #ccc;
          div {
            display: block;
          }
          ul {
            height: 150px;
            border: 1px solid #ccc;
            border-top: none;
          }
        }
      }
      div:nth-of-type(3) {
        -webkit-box-sizing: border-box;
        div {
          width: 83px;
          background-color: white;
          height: 4px;
          display: none;
        }
        ul {
          margin-left: -1px;
          width: 85px;
          background-color: white;
          height: 0;
          overflow: hidden;
          transition: all 0.5s;
          position: absolute;
          margin-top: 2px;
          z-index: 10000;
          width: 400px;
          border: none;
        }
        &:hover {
          border-left: 1px solid #ccc;
          border-right: 1px solid #ccc;
          div {
            display: block;
          }
          ul {
            height: 150px;
            border: 1px solid #ccc;
            border-top: none;
          }
        }
      }
    }
  }
}

.top-right {
  float: right;
  width: 650px;
  height: 35px;
  // background-color: blue;
  div {
    float: right;
    height: 35px;
    font-size: 12px;
    position: relative;
    text-align: center;
    line-height: 35px;
    margin-left: 15px;
    i {
      display: inline-block;
      vertical-align: middle;
      height: 30px;
      width: 30px;
      background: url(../img/sidebaricon.png) no-repeat 0px -165px;
    }
    em {
      height: 30px;
      color: $top-color;
    }
    b {
      height: 30px;
      transition: all 0.2s;
      transform: rotate(0deg);
      display: inline-block;
      width: 20px;
      height: 20px;
      position: relative;
      top: 6px;
      left: -2px;
      i {
        display: inline-block;
        width: 0px;
        height: 0px;
        border: 5px solid transparent;
        border-bottom: 5px solid #000;
        position: absolute;
        left: 5px;
        top: 1px;
      }
      em {
        display: inline-block;
        width: 0px;
        height: 0px;
        border: 5px solid transparent;
        border-bottom: 5px solid white;
        position: absolute;
        left: 5px;
        top: 2px;
      }
    }
  }
  div:hover {
    em {
      color: $hover-color;
    }
    b {
      transform: rotate(180deg);
    }
  }
}

.seek-content {
  height: 100px;
  div {
    float: left;
  }
  > div:nth-child(1) {
    width: 190px;
    height: 90px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  > div:nth-child(2) {
    width: 160px;
    height: 100px;
  }
  > div:nth-child(3) {
    > div:nth-of-type(1) {
      margin-top: 20px;
      border: 3px solid $hover-color;
      width: 420px;
      height: 40px;
      border-top-left-radius: 15px;
      border-bottom-left-radius: 15px;
      border-right: none;
      line-height: 40px;
      i {
        margin-left: 10px;
        font-size: 24px;
        display: inline-block;
        width: 20px;
        height: 20px;
        color: $top_color;
        opacity: 0.6;
      }
      input {
        color: rgb(204, 204, 204);
        width: 380px;
        vertical-align: top;
        height: 40px;
        border: none;
        font-size: 18px;
      }
    }
    > input {
      background-color: $hover-color;
      font-size: 18px;
      color: white;
      font-weight: 700;
      width: 120px;
      height: 46px;
      margin-top: 20px;
      border: 3px solid $hover-color;
      border-left: none;
      border-bottom-right-radius: 20px;
      border-top-right-radius: 20px;
    }
    > div:nth-of-type(2) {
      float: none;
      ul {
        li {
          margin-top: 5px;
          padding: 0 10px 0 10px;
          font-size: 12px;
          color: #999;
          float: left;
          border-right: 1px solid #ddd;
          line-height: 1;
          &:hover {
            color: $hover-color;
          }
        }
        li:last-child {
          border: none;
        }
      }
    }
  }
}

// 导航栏

.nav-content {
  height: 38px;
  > div:nth-of-type(1) {
    float: left;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    height: 38px;
    width: 200px;
    background-color: $hover-color;
    color: white;
    line-height: 38px;
    i {
      margin-left: 10px;
    }
  }
  ul {
    float: left;
    li {
      font-size: 14px;
      float: left;
      width: 110px;
      height: 38px;
      position: relative;
      overflow: hidden;

      img {
        width: 100%;
        height: 100%;
      }
      i {
        position: absolute;
        top: 38px;
        left: 40px;
        display: inline-block;
        width: 25px;
        height: 8px;
        background: url(../img/tubiao.png) no-repeat -37px 0px;
        transition: top 0.5s;
      }
      &:hover {
        i {
          top: 30px;
        }
      }
    }
    > li:nth-of-type(4) {
      b {
        display: inline-block;
        width: 14px;
        height: 17px;
        position: absolute;
        background: url(../img/tubiao.png) -345px -213px;
      }
    }
    > li:nth-of-type(3) ~ li {
      &:hover {
        color: $hover-color;
      }
      text-align: center;
      line-height: 38px;
      width: 85px;
      color: rgb(51, 51, 51);
      font-weight: 700;
      i {
        left: 30px;
      }
    }
  }
  > div:nth-of-type(2) {
    float: right;
    height: 39px;
    width: 196px;
    img {
      width: 100%;
      height: 100%;
    }
  }
}

// 轮播图
.lunbotu-wrapper {
  width: 100%;
  height: 476px;
  background: rgb(61, 176, 243);
}

.lunbo-content {
  position: absolute;
  z-index: 1000000000;
  top: 0px;
  left: 50%;
  height: 476px;
  > ul {
    background-color: white;
    float: left;
    width: 200px;
    height: 100%;
    li:nth-of-type(1):hover {
      background-color: rgb(235, 235, 235);
      ul {
        display: block;
        background-color: rgb(235, 235, 235);
      }
    }
    li {
      width: 200px;
      height: 31px;
      line-height: 31px;
      font-size: 14px;
      position: relative;

      > ul {
        position: absolute;
        top: 0;
        left: 200px;
        z-index: 100000;
        width: 796px;
        height: 476px;
        background-color: white;
        display: none;
      }
      a {
        color: #000;
      }
      a:hover {
        color: $hover-color;
      }
      img {
        margin-left: 5px;
        margin-right: 5px;
        margin-top: -3px;
        width: 16px;
        height: 16px;
        vertical-align: middle;
      }
    }
  }
  > div:nth-of-type(1) {
    position: relative;
    float: left;
    width: 794px;
    height: 100%;
    > ul {
      position: absolute;
      top: 364px;
      z-index: 1000000;
      width: 786px;
      left: 4px;
      height: 112px;
      li {
        float: left;
        width: 194px;
        height: 112px;
        margin-left: 2px;
        position: relative;
        img {
          width: 100%;
          height: 100%;
        }
        i {
          display: block;
          position: absolute;
          background-color: white;
          width: 100%;
          height: 100%;
          top: 0;
          left: 0;
          opacity: 0;
          transition: all 0.3s;
        }
        &:hover {
          i {
            opacity: 0.3;
          }
        }
      }
    }
  }
  > div:nth-of-type(2) {
    float: right;
    width: 196px;
    height: 100%;
    background-color: white;
    > div:nth-of-type(1) {
      position: relative;
      > img {
        width: 50px;
        height: 50px;
        position: absolute;
        top: -5px;
        left: 10px;
      }
      > div:nth-of-type(1) {
        margin-left: 66px;
        margin-top: 15px;
        p {
          font-size: 12px;
        }
        > p:nth-of-type(2) {
          margin-top: 5px;
          a {
            color: #000;
          }
          a:hover {
            color: $hover-color;
          }
        }
      }
      > div:nth-of-type(2) {
        margin-top: 15px;
        text-align: center;
        a {
          display: inline-block;
          width: 30%;
          font-size: 14px;
          color: #000;
          img {
            width: 36px;
          }
          &:hover {
            img {
              opacity: 0.8;
            }
            color: $hover-color;
          }
        }
      }
      > p:nth-of-type(1) {
        width: 156px;
        height: 24px;
        margin: 0 auto;
        background-color: $hover-color;
        font-size: 12px;
        text-align: center;
        line-height: 24px;
        border-radius: 5px;
        color: white;
        margin-top: 20px;
        &:hover {
          opacity: 0.8;
        }
      }
      > p:nth-of-type(2) {
        &:hover {
          opacity: 0.8;
        }
        width: 156px;
        height: 24px;
        margin: 0 auto;
        background-color: #373a77;
        font-size: 12px;
        text-align: center;
        line-height: 24px;
        border-radius: 5px;
        color: #fada99;
        margin-top: 10px;
      }
    }
    > ul {
      height: 100%;
      margin-top: 20px;
      li:nth-of-type(3n) {
        border-right: none;
      }
      li {
        float: left;
        width: 65px;
        height: 85px;
        text-align: center;
        border: 1px solid #f2f2f2;
        box-sizing: border-box;
        border-left: none;
        border-bottom: none;

        &:hover {
          box-shadow: 0 4px 8px 0 rgb(0 0 0 / 10%);
          p {
            color: $hover-color;
          }
        }
        a {
          p {
            font-size: 14px;
          }
          color: #000;
        }
        img {
          width: 26px;
          height: 26px;
          margin: 12px 0 12px 0;
        }
      }
    }
  }
  .swiper-pagination {
    position: absolute;
    margin: 0 auto;
    top: 345px;
    height: 6px;
    span {
      width: 20px;
      height: 4px;
      border-radius: 0%;
    }
  }
}

.swiper-pagination-bullet-active {
  background-color: $hover-color;
}

section {
  background-color: #f5f5f5;
  > .sec-content {
    display: grid;
    grid-template-columns: repeat(2, 590px);
    grid-template-rows: repeat(3, 305px);
    align-items: flex-end;
    justify-content: space-between;
    > div {
      background-color: white;
      border-radius: 10px;
      height: 290px;
    }
    > div:nth-of-type(1) {
      > div {
        height: 60px;
        line-height: 60px;
        margin-left: 20px;
        > img {
          margin-top: 14px;
          float: left;
          width: 106px;
          height: 30px;
        }
        > p {
          float: left;
          margin-left: 8px;
          margin-top: -2px;
          > span {
            vertical-align: middle;
            display: inline-block;
            width: 24px;
            height: 24px;
            background-color: black;
            border-radius: 5px;
            color: white;
            line-height: 24px;
            text-align: center;
          }
          > i {
            vertical-align: middle;
          }
        }
        > div {
          margin-top: 18px;
          margin-right: 10px;
          float: right;
          width: 160px;
          height: 25px;
          > p {
            float: left;
            font-size: 14px;
            line-height: 25px;
            text-align: center;
            width: 50%;
            box-sizing: border-box;
          }
          > p:nth-of-type(1) {
            border: 1px solid #ef0027;
            border-top-left-radius: 5px;
            border-bottom-left-radius: 5px;
            border-right: none;
            color: #ef0027;
            background-color: white;
          }
          > p:nth-of-type(2) {
            border: 1px solid #ef0027;
            border-top-right-radius: 5px;
            border-bottom-right-radius: 5px;
            border-left: none;
            color: white;
            background-color: #ef0027;
          }
        }
      }
      > ul:nth-of-type(2) {
        display: none;
      }
      > ul {
        > li {
          margin-left: 20px;
          float: left;
          height: 200px;
          width: 170px;
          text-align: center;
          > img {
            width: 150px;
          }
          > p:nth-of-type(1) {
            width: 170px;
            height: 20px;
            font-size: 14px;
            line-height: 20px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: #000;
          }
          > p:nth-of-type(2) {
            width: 170px;
            font-size: 14px;
            text-align: left;
            color: red;
            font-size: 12px;
            > span:nth-of-type(1) {
              font-size: 18px;
              font-weight: 700;
            }
            > span:nth-of-type(2) {
              color: #999;
              text-decoration: line-through;
            }
          }
        }
      }
    }
    > div:nth-of-type(2) {
      > div:nth-of-type(1) {
        height: 60px;
        font-size: 14px;
        &:hover {
          img {
            opacity: 0.8;
          }
        }
        > img {
          margin-top: 14px;
          margin-left: 10px;
          float: left;
          width: 106px;
          height: 30px;
        }
        > p {
          margin-top: 15px;
          float: left;
          color: #e7001d;
          height: 26px;
          border: 1px solid #e7001d;
          border-radius: 5px;
          padding: 0 5px;
          margin-left: 10px;
        }
        > a {
          margin-top: 18px;
          float: right;
          margin-right: 20px;
          color: #000;
          &:hover {
            p {
              color: $hover-color;
            }
            i {
              background: url(https://res.suning.cn/project/cmsWeb/suning/homepage/v8/css/images/more2.png?v=2021062901);
              background-size: 100% 100%;
            }
          }
          p {
            float: left;
            color: #999;
            margin-right: 5px;
          }
          i {
            margin-top: 2px;
            display: inline-block;
            width: 18px;
            height: 18px;
            background: url(https://res.suning.cn/project/cmsWeb/suning/homepage/v8/css/images/more.png?v=2021062901);
            background-size: 100% 100%;
          }
        }
      }
      > ul {
        > li {
          margin-left: 20px;
          float: left;
          height: 200px;
          width: 170px;
          text-align: center;
          &:hover {
            img {
              opacity: 0.8;
            }
            > p:nth-of-type(1) {
              color: $hover-color;
            }
          }
          > img {
            width: 150px;
          }
          > p:nth-of-type(1) {
            width: 170px;
            height: 20px;
            font-size: 14px;
            line-height: 20px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: #000;
          }
          > p:nth-of-type(2) {
            width: 170px;
            font-size: 14px;
            text-align: left;
            color: red;
            font-size: 12px;
            > span:nth-of-type(1) {
              vertical-align: middle;
              display: inline-block;
              background: url(https://image5.suning.cn/uimg/cms/img/161185062303520336.png);
              width: 54px;
              height: 18px;
              background-size: 100% 100%;
            }
            > span:nth-of-type(2) {
              font-size: 18px;
              font-weight: 700;
              vertical-align: middle;
            }
          }
          > p:nth-of-type(3) {
            text-align: left;
            font-size: 12px;
            color: #999;
          }
        }
      }
    }
    > div:nth-of-type(3) {
      > ul {
        > li {
          position: relative;
          &:hover {
            img {
              opacity: 0.8;
            }
          }
          > a {
            span {
              z-index: 10;
              position: absolute;
              top: 0;
              right: 0;
              display: inline-block;
              width: 70px;
              height: 70px;
              background: url(https://res.suning.cn/project/cmsWeb/suning/homepage/v8/css/images/quan2.png?v=2021062901);
              background-size: 100% 100%;
            }
            img {
              width: 150px;
            }
          }
          > div {
            width: 168px;
            height: 68px;
            background: url(https://res.suning.cn/project/cmsWeb/suning/homepage/v8/css/images/quan3.png?v=2021062901);
            background-size: 100% 100%;
            > p:nth-of-type(1) {
              font-size: 16px;
              color: #ff3300;
              font-weight: 700;
            }
            > p:nth-of-type(2) {
              font-size: 12px;
              color: #ff3300;
            }
            > p:nth-of-type(3) {
              width: 70px;
              height: 22px;
              background-color: #ff3300;
              color: white;
              margin: 0 auto;
              line-height: 22px;
              border-radius: 5px;
            }
          }
        }
        >li:nth-of-type(1){
          >a{
            >span{
              width: 42px;
              height: 44px;
              background: url(https://res.suning.cn/project/cmsWeb/suning/homepage/v8/css/images/quan1.png?v=2021062901);
              left: 0;
              background-size: 100% 100%;
            }
          }
        }
      }
    }
    > div:nth-of-type(4){
      ul{
        >li{
          &:hover{
            >a{
              >img{
                opacity: 0.8;
              }
            }
            >div{
              >p:nth-of-type(1){
                color: $hover-color;
              }
            }
          }
          >a{
            position: relative;
            >span{
              display: inline-block;
              position: absolute;
              top: 0;
              left: 0;
              width: 46px;
              height: 46px;
              background: url(https://image4.suning.cn/uimg/cms/img/159533153596347678.png);
              background-size: 100% 100%;
              color: white;
              padding-top: 20px;
              box-sizing: border-box;
              z-index: 100;
            }
            >img{
              width: 150px;
            }
          }
          >div{
            margin-top: 10px;
            >p:nth-of-type(1){
              font-size: 14px;
              color: #333;
            }
            >p:nth-of-type(2){
              margin-top: 5px;
              font-size: 14px;
              color: #ff2200;
              >img{
                width: 15px;
                height: 15px;
              }
            }
          }
        }
      }
    }
    > div:nth-of-type(5){
      >ul{
        margin-top: 10px;
        >li{
          border-radius: 10px;
          overflow: hidden;
          height: 204px;
          position: relative;
          &:hover{
            >div{
              display: block;
            }
          }
          >img:nth-of-type(1){
            width: 100%;
          }
          >img:nth-of-type(2){
            width: 22px;
            height: 22px;
            position: absolute;
            left: 10px;
            top: 10px;
            background-color: #ff2062;
            border-radius: 5px;
          }
          >p{
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 46px;
            color: white;
            font-size: 14px;
            background: url(https://res.suning.cn/project/cmsWeb/suning/homepage/v8/css/images/zbbg.png?v=20210629010);
            background-size: 100% 100%;
            text-align: left;
            line-height: 66px;
            padding-left: 10px;
            box-sizing: border-box;
          }
          >div{
            display: none;
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            background-color: rgba(0,0,0,0.6);
            z-index: 1000;
            >img{
              width: 120px;
              margin-top: 35px;
            }
            >p{
              color: white;
              font-size: 16px;
              margin-top: 15px;
            }
          }
        }
      }
    }
    > div:nth-of-type(6){
      ul{
        >li{
          position: relative;
          border-radius: 10px;
          overflow: hidden;
          &:hover{
            
          }
          >a{
            >img{
              margin-top: 15px;
              width: 150px;
            }
          }
          
          >p:nth-of-type(1){
            margin-top: 15px;
            font-size: 12px;
            color: #999;
            >span:nth-of-type(1){
              color: red;
            }
            >span:nth-of-type(2){
              color: red;
              font-size: 20px;
              font-weight: 700;
              margin-right: 10px;
            }
          }
          &:hover{
            >div{
              display: block;
            }
          }
          >div{
            display: none;
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            background-color: rgba(0,0,0,0.6);
            z-index: 1000;
            >img{
              width: 120px;
              margin-top: 35px;
            }
            >p{
              color: white;
              font-size: 16px;
              margin-top: 15px;
            }
          }
        }
      }
    }
    > div:nth-of-type(n + 3) {
      > div:nth-of-type(1) {
        height: 60px;
        font-size: 14px;
        > p {
          float: left;
        }
        > p:nth-of-type(1) {
          font-size: 24px;
          font-weight: 700;
          margin-top: 12px;
          margin-left: 15px;
          &:hover {
            color: $hover-color;
          }
        }
        > p:nth-of-type(2) {
          margin-top: 18px;
          color: #e7001d;
          height: 26px;
          border: 1px solid #e7001d;
          border-radius: 5px;
          padding: 0 5px;
          margin-left: 10px;
        }
        > a {
          float: right;
          margin-top: 18px;
          margin-right: 20px;
          color: #000;
          &:hover {
            p {
              color: $hover-color;
            }
            i {
              background: url(https://res.suning.cn/project/cmsWeb/suning/homepage/v8/css/images/more2.png?v=2021062901);
              background-size: 100% 100%;
            }
          }
          p {
            float: left;
            color: #999;
            margin-right: 5px;
          }
          i {
            margin-top: 2px;
            display: inline-block;
            width: 18px;
            height: 18px;
            background: url(https://res.suning.cn/project/cmsWeb/suning/homepage/v8/css/images/more.png?v=2021062901);
            background-size: 100% 100%;
          }
        }
      }
      ul{
        > li {
          margin-left: 20px;
          float: left;
          width: 170px;
          text-align: center;
        }
      }
    }
  }
}


// 中间商品
.middle-shop-wrapper{
  background-color: #f5f5f5;
}
.middle-shop{
  >img{
    width: 100%;
  }
  >div{
    height: 500px;
    display: grid;
    grid-template-columns: repeat(3, 390px);
    grid-template-rows: repeat(2, 245px);
    align-content: space-between;
    justify-content: space-between;
    >div{
      background-color: white;
      border-radius: 10px;
      >a{
        display: block;
        color: #333;
        height: 60px;
        line-height: 60px;
        font-size: 26px;
        font-weight: 700;
        margin-left: 20px;
        &:hover{
          color: $hover-color;
          >span{
            color: $hover-color;
          }
        }
        >span{
          color: #666;
          font-size: 16px;
          font-weight: 400;
          margin-left: 10px;
        }
      }
      >img{
        width: 165px;
        margin-left: 20px;
        &:hover{
          opacity: 0.8;
        }
      }
      
    }
  }
  >img:nth-of-type(2){
    margin-top: 20px;
  }
}

// 底部商品

.bottom-shop-wrapper{
  padding-bottom: 10px;
  background-color: #f5f5f5;
}
.bottom-shop{
  >img{
    width: 100%;
  }
  >ul:nth-of-type(1){
    >li:nth-of-type(1){
      >p:nth-of-type(1){
        color: $hover-color;
      }
      >p:nth-of-type(2){
        background-color: $hover-color;
        color: white;
      }
    }
    >li{
      float: left;
      width: 170px;
      height: 76px;
      text-align: center;
      >p:nth-of-type(1){
        color: #333;
        font-size: 17px;
        font-weight: 700;
        >img{
          width: 20px;
          vertical-align: middle;
        }
        >img:nth-of-type(2){
          display: none;
        }
      }
      >p:nth-of-type(2){
        border-radius: 5px;
        line-height: 26px;
        margin: 0 auto;
        width: 90px;
        height: 26px;
        font-size: 14px;
        color: #999;
        margin-top: 5px;
      }
    }
  }
}

.goods-list-container{
  li{
    width: 228px;
    height: 350px;
    float: left;
    margin: 0 10px 10px 0;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    &:hover{
      box-shadow: 0 6px 12px 0 rgb(0 0 0 / 15%);
      >p:nth-of-type(1){
        color: $hover-color;
      }
    }
    >img{
      width: 230px;
      height: 230px;
    }
    >p:nth-of-type(1){
      width: 202px;
      height: 40px;
      margin: 0 auto;
      overflow: hidden;
      font-size: 14px;
      color: #333;
      margin-top: 8px;
    }
    >p:nth-of-type(2){
      margin-top: 8px;
      display: inline-block;
      height: 18px;
      margin-left: 14px;
      border: 1px solid $hover-color;
      border-radius: 3px;
      font-size: 14px;
      line-height: 18px;
      color: $hover-color;
    }
    >p:nth-of-type(3){
      margin-top: 8px; 
      margin-left: 14px;
      color: #ff3300;
      font-size: 14px;
      >span:nth-of-type(1){
        color: #ff3300;
        font-size: 20px;
        font-weight: 700;
      }
      >span:nth-of-type(2){
        color: #999;
        text-decoration: line-through;
        margin-left: 5px;
      }
    }
  }
  li:nth-of-type(5n){
    margin-right: 0;
  }
}


// 底部

footer{
  border-top: 1px solid #e7e7e7;
  background-color: #f5f5f5;
  
}
.footer-img{
  overflow: hidden;
  >ul:nth-of-type(1){
    margin: 20px 0 30px 0;
    >li{
      width: 230px;
      height: 52px;
      float: left;
      margin-right: 10px;
      >img{
        width: 48px;
        float: left;
      }
      >p{
        line-height: 24px;
        text-indent: 10px;
      }
      >p:nth-of-type(1){
        font-size: 14px;
        font-weight: 700;
      }
      >p:nth-of-type(2){
        font-size: 12px;
        color: #545454;
      }
    }
    >li:nth-of-type(5){
      margin-right: 0;
    }
  }
  >ul:nth-of-type(2){
    >li{
      float: left;
      width: 210px;
      height: 160px;
      >p{
        height: 22px;
        font-size: 12px;
        color: #545454;
        line-height: 22px;
      }
      >p:nth-of-type(1){
        font-size: 14px;
        font-weight: 700;
        height: 35px;
        line-height: 35px;
      }
      >p:nth-of-type(n+2){
        &:hover{
          color: $hover-color;
        }
      }
    }
    >li:last-child{
      width: 90px;
      >p:nth-of-type(2){
        line-height: 1.4;
      }
    }
  }
}


// 底部信息
.botton{
  padding-top: 10px;
  >p{
    height: 25px;
    line-height: 25px;
    text-align: center;
    font-size: 12px;
    color: #666;
  }
}


// 楼梯
.stairs{
  background-color: white;
  width: 70px;
  height: 212px;
  position: fixed;
  left: 5%;
  top: 50%;
  margin-top: -100px;
  z-index: 100000;
  border: 1px solid #e8e8e8;
  display: none;
  >img{
    width: 42px;
    height: 41px;
    position: absolute;
    top: -36px;
    left: 12px;
  }
  >ul{
    >li{
    width: 100%;
    height: 29px;
    text-align: center;
    line-height: 29px;
    border-bottom: 1px solid #e8e8e8;
    cursor: pointer;
    } 
    >li:last-child{
      border-bottom: none;
    }
    .lis-active{
      background-color: $hover-color;
      color: white;
    }
  }
  
}


// 吸顶菜单
.top-menu-wrapper{
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000000;
  display: none;
  box-shadow: rgb(0 0 0 / 20%) 0 1px 5px;
}
.top-menu{
  height: 50px;
  background-color: white;
  > div:nth-of-type(1) {
    margin-top: 7px;
    float: left;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    height: 38px;
    width: 200px;
    background-color: $hover-color;
    color: white;
    line-height: 38px;
    i {
      margin-left: 10px;
    }
  }
  > div:nth-of-type(2) {
    float: right;
    > div:nth-of-type(1) {
      float: left;
      // margin-top: 20px;
      border: 3px solid $hover-color;
      width: 420px;
      height: 40px;
      border-top-left-radius: 15px;
      border-bottom-left-radius: 15px;
      border-right: none;
      line-height: 40px;
      i {
        margin-left: 10px;
        font-size: 24px;
        display: inline-block;
        width: 20px;
        height: 20px;
        color: $top_color;
        opacity: 0.6;
      }
      input {
        color: rgb(204, 204, 204);
        width: 380px;
        vertical-align: top;
        height: 40px;
        border: none;
        font-size: 18px;
      }
    }
    > input {
      background-color: $hover-color;
      font-size: 18px;
      color: white;
      font-weight: 700;
      width: 120px;
      height: 46px;
      border: 3px solid $hover-color;
      border-left: none;
      border-bottom-right-radius: 20px;
      border-top-right-radius: 20px;
    }
  }
}



